<include file="Public:pageheader" />
<script>
function xuan()
		{
		  var a=new Array();
		  var i;
		  var c=0;
		  for(i=0;i<document.getElementsByName("quanxuan[]").length;i++)
		  {
		  if(document.getElementsByName("quanxuan[]")[i].checked)
		    {
		     a[c]=document.getElementsByName("quanxuan[]")[i].value;
		     c++;
		     /*alert(a);*/
		  }
		  }
			if(a.length==0)
			{
			  alert("请选择");
			}
			else
			{
				var ss=confirm("确定删除?");
				if(ss==true)
				{
				  location.href="__APP__/Deposit/all_delete/id/"+a;
				}
			}
		}
</script>
<table id="mytable" cellspacing="0" align="center">
<caption>Tag : {$Think.lang.list_deposit}</caption>
<form method="post" action="__URL__/search">
寄存人姓名：<input type="text" name="name"/>
寄存位：<input type="text" name="deposit"/>
操作日期： 从 <input type="text" id="day_begin" name="begin_time" onclick="fPopCalendar(event,this,this)" onfocus="this.select();this.className='input1'" readonly="readonly" value="" class="input0" onBlur="this.className='input0'" />&nbsp;&nbsp;&nbsp;
到 <input type="text" id="day_begin" name="end_time" onclick="fPopCalendar(event,this,this)" onfocus="this.select();this.className='input1'" readonly="readonly" value="" class="input0" onBlur="this.className='input0'" />&nbsp;&nbsp;&nbsp;
<input type="submit" value="查询寄存人信息"/>
</form>
<form><input type="button" value="新增寄存人信息" onclick="javascript:window.location.href='__APP__/Deposit/add'"/></form>
<tr>
	<th scope="col"><input type="checkbox" onclick="ck(this.value)"/></th>
	
	<th scope="col">{$Think.lang.name}</th>
	<th scope="col">{$Think.lang.charge_person_id}</th>
	<th scope="col">{$Think.lang.yesorno}</th>
	<th scope="col">{$Think.lang.graveyard_id}</th>
	<th scope="col">{$Think.lang.operator}</th>
	<th scope="col">{$Think.lang.operat_time}</th>
	<th scope="col">{$Think.lang.deposit_status}</th>
	<th scope="col">{$Think.lang.operation}</th>
</tr>
<iterate name="list" id="v">

<tr>
<th><input type="checkbox" name="quanxuan[]" value="{$v.id}"/></th>


<td><a href="__URL__/view/id/{$v.id}">{$v.name}</a></td>
<th scope="row" class="spec">{$v.charge_person_name}</th>
<th scope="row" class="spec">
<if condition = "$v.status ==1">是
		<else/>否
		</if>
</th>
<th scope="row" class="spec">{$v.graveyard_id}</th>
<th scope="row" class="spec">{$v.creater_name}</th>
<th scope="row" class="spec">{$v.creater_time|date='Y-m-d',###}</th>
<th scope="row" class="spec">
<if condition="$v.disposit_state eq 1">闲置位
<elseif condition="$v.disposit_state eq 2"/>已锁定
<else/>已存放
</if>
</th>
<td align="center">
<a href="__URL__/edit/id/{$v.id}" title="{$Think.lang.edit}"><img src="__PUBLIC__/images/pencil.png" alt="{$Think.lang.edit}" /></a>
<a href="__URL__/delete/id/{$v.id}" title="{$Think.lang.delete}" onclick="return confirm('你确定要删除吗？')"><img src="__PUBLIC__/images/cross.png" alt="{$Think.lang.delete}" /></a> 	
<a href="__URL__/view/id/{$v.id}" title="{$Think.lang.show}"><img src="__PUBLIC__/images/show.png" alt="{$Think.lang.show}" /></a>						
</td>
</tr>
</eq>

</iterate>

</table>
<br>
<form>
<input type="button" value="全选" onclick="ck(true)"/><a href="javascript:xuan()">选择删除</a>
		
<input type="button" value="取消全选" onclick="ck(false)"/>
</form>
&nbsp&nbsp&nbsp&nbsp{$page}
<include file="Public:footer" />